import request from "@/utils/request.ts";
import type {orderForm, OrderResponseData} from "@/api/order/type.ts";
enum API{
    ORDER_CREATE='/Order/createOrders',
    ORDER_QUERY='/Order/listOrdersByUserId',
}
export const createOrder=(data:orderForm)=>request.post<any,any>(API.ORDER_CREATE,data);

export const queryOrder=(userId:string)=>request.get<any,OrderResponseData>(API.ORDER_QUERY,{params:{userId}})